 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"         
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition template="/template/rich-template.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core" 
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">
	
	<ui:param name="no_panel" value="true"/>
	
	<ui:define name="body">
		<div align="center">
			<h:form>
				<br/><br/><br/>
				<rich:panel style="width: 300px" rendered="#{empty usuarioMB.usuario}">
					<f:facet name="header">
						Login:
					</f:facet>
					<h:panelGrid columns="2">
						<h:outputLabel value="Usuário:" styleClass="required"/>
						<h:inputText label="Usuário" value="#{usuarioMB.nomeUsuario}" maxlength="50" required="true"/>
						
						<h:outputLabel value="Senha:" styleClass="required"/>
						<h:inputSecret label="Senha" value="#{usuarioMB.senha}" maxlength="10" required="true"/>
					</h:panelGrid>
					<h:commandButton value="Login" action="#{usuarioMB.login}"/>
				</rich:panel>
				<br/><br/><br/>
			</h:form>
		</div>
	</ui:define>
</ui:composition>